<?php
	class message extends Mysql{
		function __construct($pagec){
			parent::__construct();
		}
		
		/**
		 * 发送消息
		 * @param $user_id
		 */
		function postMessage($user_id,$title,$content){
			$arr = array('user_id'=>$user_id,'type'=>'0','title'=>$title,'content'=>$content,'datetime'=>time());
			$this->insert('user_message',$arr);
			$message_id=$this->insert_id();
			
			return $message_id;
		}
	}
?>